

// import 'dart:nativewrappers/_internal/vm/lib/math_patch.dart';

import 'dart:math';

import 'package:ai_desktop_eidtor/models/user_model.dart';
import 'package:flutter/cupertino.dart';

class StringUtil {

  static String userModelKey = 'userModelKey';
  static UserModel userModel = UserModel();

  static String getBookId(){
    int time = DateTime.now().microsecondsSinceEpoch;
    int sec = Random.secure().nextInt(10000) + 100;
    return "ai_book_$time$sec";
  }
}



Widget wSpace(double w) => SizedBox(width: w);
Widget hSpace(double h) => SizedBox(height: h);